<template>
  <div>
    <el-menu
      default-active="/front/tableNav"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      background-color="#204051"
      text-color="#fff"
      active-text-color="#ffd04b"
      router
    >
      <el-menu-item index="/front/tableNav">
        <i class="el-icon-s-home"></i>
        <span slot="title">餐桌管理</span>
      </el-menu-item>
      <el-menu-item index="/front/orderNav">
        <i class="el-icon-s-goods"></i>
        <span slot="title">点餐管理</span>
      </el-menu-item>
      <el-menu-item index="/front/membersNav">
        <i class="el-icon-user-solid"></i>
        <span slot="title">会员管理</span>
      </el-menu-item>
      <el-menu-item index="/front/indentNav">
        <i class="el-icon-s-order"></i>
        <span slot="title">订单管理</span>
      </el-menu-item>
      <el-menu-item index="/front/invoicingNav">
        <i class="el-icon-star-on"></i>
        <span slot="title">结账管理</span>
      </el-menu-item>
      <el-menu-item index="/front/workNav">
        <i class="el-icon-message-solid"></i>
        <span slot="title">工作管理</span>
      </el-menu-item>
      
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "adminNav",
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
};
</script>

<style scoped lang="less">

</style>